<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>请假管理系统</title>
<meta name="description" content="请假管理系统">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="/static/i/favicon.png">
<link rel="apple-touch-icon-precomposed"
	href="/static/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="/static/css/amazeui.min.css" />
<link rel="stylesheet" href="/static/css/admin.css">
<link rel="stylesheet" href="/static/css/app.css">
</head>
<body data-type="generalComponents">
	<!--头部  -->
	<jsp:include page="/common/head.jsp"></jsp:include>
	<!--左边菜单栏  -->
	<jsp:include page="/common/left.jsp"></jsp:include>

	<div class="tpl-content-wrapper">
		<div class="tpl-portlet-components">
			<div class="portlet-title">
				<div class="caption font-green bold">
					<span class="am-icon-code"></span> 学生信息
				</div>
				<div class="tpl-portlet-input tpl-fz-ml">
					<div class="portlet-input input-small input-inline">
						<div class="input-icon right">
							<!--                                <i class="am-icon-search"></i>-->
							<input type="hidden" class="form-control form-control-solid"
								placeholder="搜索...">
						</div>
					</div>
				</div>


			</div>
			<div class="tpl-block">
				<div class="am-g">
					<div class="am-u-sm-12 am-u-md-6">
						<div class="am-btn-toolbar">
							<div class="am-btn-group am-btn-group-xs">
								<button type="button"
									class="am-btn am-btn-default am-btn-success">
									<span class="am-icon-plus"></span> 新增
								</button>
							</div>
						</div>
					</div>

					<div class="am-u-sm-12 " style="width: 25%">
						<form action="student.php" method="post">
							<div class="am-input-group am-input-group-sm">
								<input type="text" placeholder="输入要查找的班级名称" name="c_name"
									class="am-form-field"> <span class="am-input-group-btn">
									<button
										class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search"
										type="submit"></button>
								</span>
							</div>
						</form>
					</div>

				</div>
				<div class="am-g">
					<div class="am-u-sm-12">
						<form class="am-form">

							<table
								class="am-table am-table-striped am-table-hover table-main">
								<thead>
									<tr>
										<th class="table-check"><input type="checkbox"
											class="tpl-table-fz-check"></th>
										<th class="table-id">ID</th>
										<th class="table-title">学号</th>
										<th class="table-type">姓名</th>
										<th class="table-author am-hide-sm-only">级别</th>
										<th class="table-author am-hide-sm-only">班级</th>
										<th class="table-author am-hide-sm-only">联系方式</th>
										<th class="table-date am-hide-sm-only">最近请假日期</th>
									</tr>
								</thead>
								<tbody>
									
									<tr>
										<td><input type="checkbox"></td>
										<td>
											<?php echo $line['s_id']?>
										</td>
										<td>
											<?php echo $line['s_card']?>
										</td>
										<td>
											<?php echo $line['s_username']?>
										</td>
										<td class="am-hide-sm-only">
											<?php echo $line['s_grade']?>级
										</td>
										<td class="am-hide-sm-only">
											<?php echo $line['s_class']?>班
										</td>
										<td class="am-hide-sm-only">
											<?php echo $line['s_phone']?>
										</td>
										<td class="am-hide-sm-only">
											<?php echo $line['s_lastleave']?>
										</td>
										
									</tr>
									
								</tbody>
							</table>
						
							<hr>

						</form>
					</div>

				</div>


				<br>
				<br>
				<br>
				<br>
				<br>
				<br>
				<br>
			</div>
			<div class="tpl-alert"></div>
		</div>


	</div>




	<script src="/static/js/jquery.min.js"></script>
	<script src="/static/js/amazeui.min.js"></script>
	<script src="/static/js/app.js"></script>
	<script>
		function get_StudentList() {
			var s_g_id = document.getElementById('s_g_id').value;
			var s_c_id = document.getElementById('s_c_id').value;
			location.href = "/index.php?c=student&a=index&s_g_id=" + s_g_id
					+ "&s_c_id=" + s_c_id;
		}
		function change_class() {
			var s_g_id = document.getElementById('s_g_id').value;
			$.get("/index.php?c=student&a=apply_ajax&s_g_id=" + s_g_id,
					function(data) {
						var res = eval("(" + data + ")");//转为Object对象
						var str = '<option value="0">请选择班级</option>';

						for (var i = 0; i < res.length; i++) {
							str = str + '<option value="' + res[i].c_id + '">'
									+ res[i].c_name + '</option>';
						}
						document.getElementById('s_c_id').innerHTML = str;
					});
		}
	</script>
</body>

</html>